package com.mybatis.bean;

import java.io.Serializable;
import java.util.List;

public class Right implements Serializable {
    private Integer id;
    private String rightName;
    private List<Role> roleList;

    @Override
    public String toString() {
        return "Right{" +
                "id=" + id +
                ", rightName='" + rightName + '\'' +
                '}';
    }

    public String getRightName() {
        return rightName;
    }

    public void setRightName(String rightName) {
        this.rightName = rightName;
    }

    public List<Role> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }

    public Right(String rightName) {
        this.rightName = rightName;
    }

    public Right() {
    }

    public Right(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRightDetail() {
        return rightName;
    }

    public void setRightDetail(String rightDetail) {
        this.rightName = rightDetail;
    }

}
